
import './App.css';
import { ConfigProvider } from 'antd';
import { Switch, HashRouter } from "react-router-dom";
import { createHashHistory } from 'history';
import routes from "./router/router";
import zhCN from 'antd/lib/locale-provider/zh_CN';
import renderRoutes from './router/renderRoutes'
const hashHistory = createHashHistory();
function App() { 
  return (
    <div className="App">
      {/* <Button type="primary">Primary</Button>       */}
      <HashRouter history={hashHistory}>
          <ConfigProvider locale={zhCN}>
                {renderRoutes(routes)}
          </ConfigProvider>
      </HashRouter>
    </div>
  );
}






export default App;
